8 #define MAX(a,b) (a>b?a:b)
9 #define MIN(a,b) (a<b?a:b)
14 while (getline(cin
,s
[0]) && getline(cin
,s
[1])){
15 for (int i
=0; i
<2; ++i
){
17 for (int j
=0; j
<s
[i
].size(); ++j
){
18 char c
= tolower(s
[i
][j
]);
23 n
[i
] = (n
[i
]%9>0 ? n
[i
]%9 : 9);
25 printf("%.2f %\n", (double)MIN(n
[0], n
[1])*100.0/(double)MAX(n
[0], n
[1]));